package as3.component.sound
{
	import flash.media.SoundTransform;
	
	/**
	 * 声音属性基类
	 * @author 周玉龙
	 * 二〇一一年十月二十六日 10:53:40
	 */	
	public class SoundProperty
	{
	
		//--------------------------------------------------------------------------
		//
		//  variable
		//
		//--------------------------------------------------------------------------
		public var soundTransform:SoundTransform;
		
		public function SoundProperty()
		{
			init();
		}
		
		//--------------------------------------------------------------------------
		//
		//  property
		//
		//--------------------------------------------------------------------------
		private var _volume:uint = 1;
		
		public function get volume():uint
		{
			return _volume;
		}
		
		public function set volume(value:uint):void
		{
			_volume = value;
			soundTransform.volume = value;
		}
		
		private var _isMute:Boolean = false;
		
		/**是否静音*/
		public function get isMute():Boolean
		{
			return _isMute;
		}
		
		/**
		 * @private
		 */
		public function set isMute(value:Boolean):void
		{
			_isMute = value;
		}
		
		//--------------------------------------------------------------------------
		//
		//  static
		//
		//--------------------------------------------------------------------------
		
		//--------------------------------------------------------------------------
		//
		//  public
		//
		//--------------------------------------------------------------------------
		
		//--------------------------------------------------------------------------
		//
		//  private
		//
		//--------------------------------------------------------------------------
		private function init():void
		{
			soundTransform = new SoundTransform();
		}
		//--------------------------------------------------------------------------
		//
		//  override
		//
		//--------------------------------------------------------------------------
		
		//--------------------------------------------------------------------------
		//
		//  event
		//
		//--------------------------------------------------------------------------
	}
}